#ifndef __ADC_H
#define __ADC_H 
	#define SYSMEMREMAP (*(volatile unsigned int *)0x40048000)
	#define SYSAHBCLKCTRL (*(volatile unsigned int *)0x40048080)
	#define IOCON_R_PIO1_2 (*(volatile unsigned int *)0x40044080)
	#define PDRUNCFG (*(volatile unsigned int *)0x40048238)
	#define AD0CR (*(volatile unsigned int *)0x4001C000)
	#define AD0DR0 (*(volatile unsigned int *)0x4001C01C) //AD3数据寄存器
	#define ADC_DONE 0xf0000000 
	#define ADC_OVERRUN 0x40000000
	#define ADC_CLK 2400000
	
	void ADCInit(unsigned int ADC_Clk);
	unsigned int ADCRead( unsigned char channelNum );
	void Obtaining_adc_voltage(void);
#endif
